]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
magnifier: Round the uiGroup to integer positions
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 30 Aug 2012 19:21:00 +0000 (16:21 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 31 Aug 2012 19:43:51 +0000 (16:43 -0300)
This removes the jaggies from text, and other sorts of things.

https://bugzilla.gnome.org/show_bug.cgi?id=683073

js/ui/magnifier.js

index 4a144b26a31732cfe3f2627af59e7dbe2547173e..91263b71dbb9e2b945cd64d51da31f2eb5b9251a 100644 (file)
@@ -1325,7 +1325,7 @@ const ZoomRegion = new Lang.Class({
         this._mouseActor.set_scale(this._xMagFactor, this._yMagFactor);
 
         let [x, y] = this._screenToViewPort(0, 0);
-        this._uiGroupClone.set_position(x, y);
+        this._uiGroupClone.set_position(Math.round(x), Math.round(y));
 
         this._updateMousePosition();
     },